#define _CRT_SECURE_NO_WARNNINGS 1
#include"Heap.h"

void Test1()
{
	Hp hp;
	HeapInit(&hp);
	int b[] = { 10,8,2,3,1,0,7,5,9,11 };
	int k = sizeof(b) / sizeof(int);

	for (int i = 0; i < k; i++)
	{
		HeapPush(&hp,b[i]);
	}

	//HeapPush(&hp, -1);
	//int a = HeapTop(&hp);
	//int t = HeapSize(&hp);
	//printf("%d    %d\n", a,t);
	HeapPrint(&hp);
	while (!HeapEmpty(&hp))
	{
		printf("%d  ", HeapTop(&hp));
		HeapPop(&hp);
	}
	
}


int main()
{
	Test1();

	return 0;
}